<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<div class="mainbar">
	<div class="page-head">
		<h2 class="pull-left">
			<i class="icon-tasks"></i>
			<spring:message code="menu.addCategory.label" />
		</h2>
		<div class="clearfix"></div>

	</div>
	<div class="matter background_seller">
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span7 offset2">
					<div class="widget">
						<div class="widget-head">
							<div class="pull-left">
								<spring:message code="menu.cateinfo.label" />
							</div>
							<div class="clearfix"></div>
						</div>
						<div class="widget-content">
							<div class="padd">
								<div class="offset1">
									<form:form id="addCategoryForm" action="addCategory"
										method="POST" modelAttribute="category"
										class="form-horizontal">

										<div class="control-group">
											<label class="control-label admin_Label" for="categoryname"><spring:message
													code="menu.categoryname.label" /></label>
											<div class="controls">
												<form:input type="text" class="input-large"
													name="txtcategoryname" id="categoryname" path="name" />
											</div>
										</div>

										<div class="control-group">
											<label class="control-label admin_Label" for="catedesc"><spring:message
													code="menu.categorydesc.label" /></label>
											<div class="controls">
												<form:textarea rows="10" cols="10" class="input-large"
													name="txtcatedesc" id="catedesc" path="description" />
											</div>
										</div>

										<%-- 	<div class="control-group">
											<label class="control-label admin_Label" for="isActive"><spring:message
													code="menu.isActive.label" /></label>
											<div class="controls">
												<input type="checkbox" name="isActive" value="true">
											</div>
										</div> --%>


										<input type="hidden" value="0" id="currentFieldCount" />

										<div class="control-group">
											<div class="controls">

												<button type="submit" class="btn btn-primary offset2"
													value="addAccount" name="action">
													<spring:message code="menu.addNew.label" />
												</button>
												<a href="./listCategory" class="btn btn-primary "
													style="font-size: 12px !important; margin-left: 20px"><spring:message
														code="menu.cancel.label" /></a>
											</div>
										</div>
									</form:form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
